package L1;

import java.io.IOException;
import java.util.Scanner;

public class _095 {
    /**
     * 分寝室
     */
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        int n0 = scanner.nextInt();
        int n1 = scanner.nextInt();
        int n = scanner.nextInt();
        int min = Integer.MAX_VALUE;
        int index = -1;
        for (int i = 1; i < n && i < n0 && (n - i) < n1; i++) {
            if (n0 % i == 0 && n1 % (n - i) == 0) {
                int temp = Math.abs(n0 / i - n1 / (n - i));
                if (temp < min) {
                    index = i;
                    min = temp;
                }
            }
        }
        if (index == -1) {
            System.out.println("No Solution");
        } else {
            System.out.println(index + " " + (n - index));
        }
    }
}
